]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
screenshot: Close overview/calendar when activating notification
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 11 Mar 2025 00:23:40 +0000 (01:23 +0100)
committerMarge Bot <marge-bot@gnome.org>
Sun, 16 Mar 2025 13:44:03 +0000 (13:44 +0000)
While the notifications are transient, they still appear in the
message list while the banner is shown, and can be activated
there.

The expected behavior in that case is that we close the calendar
popup and/or leave the overview.

Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8246

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3667>

js/ui/screenshot.js

index e3bd5495f114815e17a5987d473cee9bdaa87422..49873c10a60116cdb84e4dd53fd8adab3aeb8c7a 100644 (file)
@@ -2115,6 +2115,9 @@ export const ScreenshotUI = GObject.registerClass({
                     logError(err, 'Error opening screencast');
                 }
             });
+
+            Main.overview.hide();
+            Main.panel.closeCalendar();
         }
 
         Main.messageTray.add(source);
@@ -2359,6 +2362,9 @@ function _storeScreenshot(bytes, pixbuf) {
             } catch (err) {
                 logError(err, 'Error opening screenshot');
             }
+
+            Main.overview.hide();
+            Main.panel.closeCalendar();
         });
     }